﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MacGorevListesi.ascx.cs"
    Inherits="HPDMAS.UserControls.MacGorevListesi" %>
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
    DataKeyNames="MacGorevID" DataSourceID="EntityDataSource1">
    <PagerSettings PageButtonCount="15" />
    <AlternatingRowStyle BackColor="#FF9966" />
    <HeaderStyle BackColor="Black" ForeColor="White" />
    <RowStyle Height="30px" />
    <Columns>
        <asp:TemplateField ShowHeader="False">
            <EditItemTemplate>
                <asp:Button ID="Button1" runat="server" CausesValidation="True" CommandName="Update"
                    Text="Güncelle" />
                &nbsp;<asp:Button ID="Button2" runat="server" CausesValidation="False" CommandName="Cancel"
                    Text="Vazgeç" />
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Button ID="Button1" runat="server" CausesValidation="False" CommandName="Edit"
                    Text="Düzenle" />
                &nbsp;<asp:Button ID="Button2" runat="server" CausesValidation="False" CommandName="Delete"
                    Text="Sil" />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="MaçGörevAdı">
            <EditItemTemplate>
                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("MacGorevAdi") %>' Width="150px"></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="Label1" runat="server" Text='<%# Bind("MacGorevAdi") %>' Width="150px"></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="MaçGörevAktif">
            <EditItemTemplate>
                <asp:CheckBox ID="CheckBox1" runat="server" Checked='<%# Bind("MacGorevAktif") %>'
                    Width="40px" />
            </EditItemTemplate>
            <ItemTemplate>
                <asp:CheckBox ID="CheckBox1" runat="server" Checked='<%# Bind("MacGorevAktif") %>'
                    Width="40px" Enabled="false" />
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:GridView>
<asp:EntityDataSource ID="EntityDataSource1" runat="server" ConnectionString="name=HPDMASEntities"
    DefaultContainerName="HPDMASEntities" EnableDelete="True" EnableFlattening="False"
    EnableUpdate="True" EntitySetName="MacGorev">
</asp:EntityDataSource>
